import { reactive } from 'vue';

const state = reactive<{
  /**
   *重命名文件夹
   */
  renameFolderDialogVisible: boolean;
  /**
   *文件夹名称
   */
  nameFolder: string;
  /**
   *重命名文件夹ID
   */
  renameFolderId: string;
  /**
   * 创建文件夹
   */
  createFolderDialogVisible: boolean;
  /**
   *文件夹名称
   */
  createFolderName: string;

  /**
   *重命名文件
   */
  renameFileDialogVisible: boolean;
  /**
   * 文件实体
   */
  renameFileItem: DossierManager.fileDto;
}>({
  renameFolderDialogVisible: false,
  nameFolder: '',
  renameFolderId: '',
  createFolderDialogVisible: false,
  createFolderName: '',
  renameFileDialogVisible: false,
  renameFileItem: {},
});

export { state };
